package com.zhkj.txg.module.mine.entity

import com.google.gson.annotations.SerializedName
import com.zhkj.lib.http.BaseResponse

data class VersionResponse(
    val data: VersionEntity
) : BaseResponse()

//"data": {
//    *      "version_code": 0,          //版本编码
//    *      "old_version": "1.0.1",     //旧版本号
//    *      "new_version": "1.0.2",     //新版本号
//    *      "package_size": "20M",      //包大小
//    *      "content": "111",           //更新内容
//    *      "download_url": "http://xxx",  //下载地址
//    *      "enforce": 1                //是否强制更新  1强制 0不强制
//    *   }
data class VersionEntity(
    @SerializedName("version_code")
    val versionCode: Int,
    @SerializedName("old_version")
    val oldVersion: String = "",
    @SerializedName("new_version")
    val newVersion: String? = "",
    @SerializedName("package_size")
    val packageSize: String = "",
    @SerializedName("content")
    val content: String = "",
    @SerializedName("download_url")
    val downloadUrl: String = "",
    @SerializedName("enforce")
    val enforce: Int = 0
)